import request from '@/utils/request'

export function login(formData) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data: formData
  })
}

export function getProfile() {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}

/**
 * @description: 获取用某个用户的信息
 * @param {*} id
 * @return {*}
 */
export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`
  })
}
